<template>
  <div v-if="show" class="alert" :class="[type]">
    <span class="close" @click="$emit('close')">&times;</span>
    <p class="message">{{ message }}</p>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'

const props = defineProps({
  show: Boolean,
  type: {
    type: String,
    default: 'info'
  },
  message: String
})
</script>